package nmy;

/**
 * mamenghao
 * 2022/10/178:50 AM
 */
public class Dog extends Animal implements Runnable,Flyable{
    @Override
    public void fly(int speed) {
        System.out.println("狗狗以"+speed+"码的速度开始飞奔");
    }

    @Override
    public void run(int speed) {
    System.out.println("狗狗以"+speed+"码的速度开始奔跑");
    }
    public void shout(){
        System.out.println("狗狗开始大声的狂叫");
    }
}
